{extend name="base" /}
{block name="content"}
<div class="layui-fluid">
  <div class="layui-card">
    <div class="layui-tab layui-tab-brief">
      <ul class="layui-tab-title">
        <li class="layui-this">精彩回顾</li>
        <li><a href="{:url('admin/dp/review_add')}">添加回顾</a></li>
      </ul>
      <div class="layui-tab-content">
        <div class="layui-tab-item layui-show">
          <table class="layui-table" lay-size="sm">
            <thead>
              <tr>
                <th>ID</th>
                <th>课程名称</th>
                <th>师资团队</th>
                <th>封面图</th>
                <th>视频</th>
                <th>介绍</th>
                <th>操作</th>
              </tr>
            </thead>
            <tbody>
              {foreach name="reviews" item="vo"}
              <tr>
                <td>{$vo.id}</td>
                <td>{$vo.course_name}</td>
                <td>{$vo.expert_team}</td>
                <td><img src="{$vo.cover_img}" style="max-width: 80px;" /></td>
                <td>
                  <video src="{$vo.video_url}" controls style="max-width: 100px;"></video>
                </td>
                <td>{$vo.description}</td>
                <td>
                  <div class="layui-btn-group">
                    <a href="{:url('admin/dp/review_edit', ['id'=>$vo.id])}" class="layui-btn layui-btn-sm"><i class="layui-icon">&#xe642;</i></a>
                    <a href="{:url('admin/dp/review_delete', ['id'=>$vo.id])}" class="layui-btn layui-btn-sm ajax-delete"><i class="layui-icon">&#xe640;</i></a>
                  </div>
                </td>
              </tr>
              {/foreach}
            </tbody>
          </table>
        </div>
      </div>
    </div>
  </div>
</div>
{/block}
